package com.cyq.day24.regex;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PhoneRegex {
    public static void main(String[] args) {
        //验证电话号码，以134，135，137开头，11位字符
        System.out.println("");
        Scanner scanner=new Scanner(System.in);
        String input=scanner.next();
        String regex="1((3[457])|(4[138])|(7[147]))\\d{8}";
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher=pattern.matcher(input);
        if (matcher.matches()){
            System.out.println("匹配");
        }else{
            System.out.println("不匹配");

        }
    }
}
